﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.Camera;
using ZK.Common;
using ZK.Common.ProModels;
using ZK.InfraredGrating;
using ZK.WagonBalance;

namespace ZK.CoalYardTransManage
{
    public partial class WeightConfirm : Form
    {
        public WeightConfirm(WeightConfirmDto dto)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            lbTruckNum.Text = dto.TruckNum;
            lbCoalType.Text = dto.CoalType;
            lbCarType.Text = dto.TruckType;
            lbType.Text = dto.Type == 1 ? "当前皮重" : "当前毛重";
            lbTareQuantity.Text = dto.Weight.ToString();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }
    }
}
